package com.edu.neusoft.elec_shop.mapper;

import com.edu.neusoft.elec_shop.domain.Comments;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CommentsMapper {
    //删除评论
    int deleteCommentById(Long userId);

    //查看评论
    Comments getCommentsByGoodsId(Long id);

    List<Comments> selectCommentsByGoodsId(Long goodsId);
}